
<%form_tag url_for(:action => "step2") do  -%>
   <input type="hidden" name="student" value="1">
        <div class="registration-user-fields">
         

        	<div class="registration-field-text">
            	*of:
            </div>
            <div class="registration-field-value">
              <input type="text" size="50" name="user[university]" id="user_college_search" class="university-search-bar" maxlength="100" value="university/college" onclick="if ($('user_college_search').value='university/college'){$('user_college_search').value='';}"/>
            </div>
             <div id="left-column-start" style="display:none;">
              </div>
              <div><br>&nbsp;</div>
        </div>
        <div class="registration-user-fields">
        	<div class="registration-field-text">
                *I am interested in:
            </div>
            <div class="registration-field-value">
                <div class="registration-drop-down-button">
                	<input type="text" id="user_interests" readonly value="Select your interests" class="dropdown" onclick="$('registration-interest-drop-down').style.display='block';"/>
                </div>
                <div class="registration-interest-drop-down" id="registration-interest-drop-down">
                  <%@categories.each do |category| %>
                    <%@category=Category.find(category.category_id.to_s)%>
                    <div class="registration-interest-division" id="interest_<%=@category.stripped_name-%>">
                      
                    	<ul>
                            <li><input type="checkbox" onclick="CheckAllByID('interest_<%=@category.stripped_name-%>');"><div class="registration-category-header"><%=image_tag "interests-"+@category.stripped_name+'.png',:border=>0,:width=>"21",:height=>"21" -%>&nbsp;&nbsp;<%=@category.name -%></div></li>
                            <%@category.sub_categories.each do |sub_category| -%>
                            <li><%=check_box_tag("interests[#{sub_category.stripped_name}]", sub_category.name) -%><div class="registration-interest"><%= sub_category.name -%></div></li>
                            <%end%>
                         
                        </ul>
					</div>
                   <%end%>
               </div>
        </div>
        <div style ="clear:both;margin:0"><br>&nbsp; </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*My Name:
            </div>
            <div class="registration-field-value">
            	<%=text_field :user, :full_name ,:size => 40,:class=>"input-box", :maxlength=>"100" -%>
            </div>
        </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*My E-mail ID:
            </div>
            <div class="registration-field-value">
                  <%=text_field :user, :email ,:size => 40,:class=>"input-box",:value=> (params[:user].nil? ? ""  : params[:user][:email]) , :maxlength=>"100",:onblur=>"$('email_status').style.display='block';"+remote_function(:url => 'check_email', :with => "'email='+this.value",:update=>"email_status") -%>
            </div>
            <div class="registration-field-value" id="email_status" style="display:none;font-size:10px;">

            </div>
        </div>

        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*My Mobile Number:
            </div>
            <div class="registration-field-value">
              <%=text_field :user, :mobile_no ,:size => 40,:class=>"input-box", :maxlength=>"100" -%>
            </div>
        </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	My University E-mail ID:
            </div>
            <div class="registration-field-value">
               <%=text_field :user, :university_email ,:size => 40,:class=>"input-box", :maxlength=>"100" -%>
            </div>
            <br/>
            <br/>
            <br/>
            <br/>
        </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*Login E-mail:
            </div>
            <div class="registration-field-value">
            	<%=text_field :user, :name ,:size => 40,:class=>"input-box", :maxlength=>"40" -%>
               
            </div>
        </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*Password:
            </div>
            <div class="registration-field-value">
            	<%=password_field :user, :password ,:size => 40,:class=>"input-box", :maxlength=>"40" -%>
            </div>
        </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*Confirm Password:
            </div>
            <div class="registration-field-value">
              <%=password_field :user, :password_confirmation ,:size => 40,:class=>"input-box", :maxlength=>"100" -%>
            </div>
        </div>
        <div class="registration-user-subscription">
          <%=check_box_tag("user[#{"recieve_third_party_mails"}]", "1") -%>Send me mails from 3rd party advertisers on SearchMyCampus.com<br/>
          <%=check_box_tag("user[#{"recieve_smc_mails"}]", "1") -%>Send me mails about SearchMyCampus.com and new features
        </div>
        <div class="registration-button">
          <%=image_submit_tag("registration-button.jpg")%>
       </div>
        <div class="regitration-policy">
        	By clicking the button above, you are indicating that you have read, understood, and agree to SearchMycampus's <a href="">Terms of use</a>
            <br/>
            <br/>
            * required
     
        </div>
        <%end -%>
        <script type="text/javascript">
                      var oTextbox = new AutoSuggestControl(document.getElementById("user_college_search"), new StateSuggestions(<%=$universities.inspect -%>));


                    
        </script>
